home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / com_and4.zip / OVERLAY.CMD < prev    next >
OS/2 REXX Batch file  |  1990-03-22  |  882b  |  29 lines

  1. ;
  2. ;    Set-up the overlay
  3. ;
  4. MESS "Current overlay is: "*"_OVER"*"!" ; Note state at start
  5. MESS "Overlay being loaded!"            ; Indicate action
  6. OVERLAY "Overlay.exe"                   ; Load our overlay
  7. IF FAILED                ; Stop here if can't load overlay
  8.    MESS "Overlay failed"
  9.    EXIT
  10.    ENDIF
  11. MESS "!Current overlay is:"*"_OVER"*"!" ; Note state here
  12. ;
  13. ;    Invoke the overlay to find the segment addr (for the curious)
  14. ;
  15. SCALL 3,N0                ; Rtn one parameter
  16. STRFMT S0 "Loaded at segment: %x!" N0   ; Format rtn value
  17. MESS S0                 ; .. and display
  18. ;
  19. ;    Invoke the overlay to display a string
  20. ;
  21. S0 = "This text written through BIOS video interrupt!"
  22. SCALL 0,S0                ; Pass one parameter
  23. ;
  24. ;    Clear the overlay, and we're done
  25. ;
  26. MESS "!Overlay being terminated!"        ; Indicate action
  27. OVERLAY CLEAR
  28. MESS "Current overlay is:"*"_OVER"*"!" ; Note state after clear
  29.